package com.zhijian.medical.controller;

import com.zhijian.medical.annotation.Response;
import com.zhijian.medical.entity.po.TTcProductType;
import com.zhijian.medical.entity.vo.request.TTcProductTypeSearchVo;
import com.zhijian.medical.service.TTcProductTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 产品类型 控制层
 *
 * @author HCG
 * @version 1.0
 * @date 2021/10/15
 */
@Slf4j
@Controller
@Api(tags = "产品类型 控制层")
public class TcProductTypeController {

    @Autowired
    private TTcProductTypeService service;

    /**
     * 列表查询，不分页
     *
     * @return
     */
    @Response
    @GetMapping("/tc/product/type/list")
    @ApiOperation("列表查询，不分页")
    public List<TTcProductType> selectList() {
        return service.selectList(TTcProductTypeSearchVo.builder().build());
    }
}
